function run(request,response) {
 var db = require('../../db').db;
 var mongoose = require('mongoose');
 var Schema = mongoose.Schema;
 //user bean
 var users = new Schema({
   name:  String,
   male: Number,
   age:   Number,
   create:Date,
   update:Date
 });
 var userModel =  mongoose.model('person',users);
    userModel.find(function (err, kittens) {
      if (err) return console.error(err);
        console.log(kittens);
        var users = {};
        users['users'] = kittens;
         response.writeHead(200, {"Content-Type": "application/json"});
         response.write(JSON.stringify(users));
         response.end();
    });
}
exports.run = run;